package com.zeros.mykotlindemo.utils

import android.content.Context

/**
 *    ▏2018/5/10.
 */
fun Context.dip2px(value: Float): Float {
    val scale = this.resources.displayMetrics.density
    return value * scale + 0.5f
}